import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        List<String> names = new ArrayList<>();
        Collections.addAll(names,"张无极","张三丰","张静","周影","霍雨浩");
        int[] arr = {1,2,3,4,5,6,7,8,9};
        List<String> list = names.stream().filter(s -> s.startsWith("张")).filter(s -> s.length() == 3).toList();
        System.out.println(list);
    }
}
